<script>
export default {
  name: "discover-music",
  activated() {
    //被 keep-alive 缓存的组件激活时调用。
    console.log("discover-music组件被激活了")
  },
  deactivated() {
    //被 keep-alive 缓存的组件失活时调用。
    console.log("discover-music组件被失活了")
  }
}
</script>

<template>
  <section class="discover-music">
    <div class="layui-panel">
      <div style="padding: 32px;">
        <ul>
          <li>发现音乐</li>
          <li><input type="text"></li>
        </ul>
      </div>
    </div>
  </section>
</template>

<style scoped lang="less">

</style>